package com.aaa.system.Controller;

import com.aaa.entity.RegisteredItem;
import com.aaa.system.service.RegisteredService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("system/registered")
public class RegisteredController {

    @Autowired
    private RegisteredService registeredService;

    /**
     * 查询全部的数据
     * @return
     */
    @GetMapping("list")
    public List<RegisteredItem> getList(){
        return registeredService.getList();
    }
}
